/* 背景相关 start */
body {
    padding: 1rem 0;
    overflow-x: hidden;
    overflow-y: auto;
}

canvas#background {
    /* opacity: 0; */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.sec-noise {
    /* opacity: 0; */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('../images/bg.jpg');
    background-size: 100% auto;
    background-color: #f0f0f0;
}
/* 背景相关 end */

/* 音乐 start */
.music {
    position: fixed;
    top: 2rem;
    right: 1rem;
    z-index: 9;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-image: url('../images/music.png');
    background-repeat: no-repeat;
    background-size: contain;
    animation: spin 6s linear infinite;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.music-stop {
    animation: none;
}
/* 音乐 end */

/* 人物 start */
.sec-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 6rem auto;
    width: 20rem;
    height: 20rem;
}
.sec-photo-image {
    position: relative;
    z-index: 1;
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    background: linear-gradient(0deg, #bbb29d, transparent);
}
.sec-photo-people {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: 20rem;
    height: 30rem;
    border-radius: 0 0 10rem 10rem;
    background-image: url('../images/people.png');
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center bottom;
}
.sec-photo-people-shadow {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 3;
    width: 20rem;
    height: 20rem;
    border-radius: 10rem;
    box-shadow: inset 0 -0.4rem 0.4rem #2e2b2633;
}
.sec-photo-flower {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 4;
    width: 15rem;
    height: 15rem;
    transform: translate(-50%, 10%);
}
.sec-photo-flower-item {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
}
.sec-photo-flower-l {
    position: absolute;
    left: 0;
    bottom: 0;
    background-image: url('../images/leaf-1.png');
    background-position: left top;
    background-size: 33.33% 100%;
}
.sec-photo-flower-r {
    position: absolute;
    left: 0;
    bottom: 0;
    background-image: url('../images/leaf-2.png');
    background-position: right bottom;
    background-size: 66.67% 33.33%;
}
.sec-photo-flower-pos {
    transform: translate(-45%, 0) rotate(10deg);
}
.sec-photo-flower-neg {
    transform: translate(45%, 0) rotate(-100deg)
}
/* 人物 end */

/* 嘉宾 start */
.sec-guest {
    margin-bottom: 3rem;

    text-align: center;
    font-size: 1.5rem;
    font-family: sans-serif;
    color: #d4ba96;
}
/* 嘉宾 end */

/* 新郎新娘 start */
.sec-host {
    margin-top: 1rem;
    margin-bottom: 3rem;

    text-align: center;
    font-size: 2rem;
}

.sec-host-and {
    margin-left: 2rem;
    margin-right: 2rem;

    text-align: center;
    font-family: serif;
}
/* 新郎新娘 end */

/* 时间 start */
.sec-date {
    margin-bottom: 2rem;
    text-align: center;
    white-space: nowrap;
    font-size: 1.5rem;
}
.sec-date-item {
    line-height: 2.5rem;
}
/* 时间 end */

/* 地点 start */
.sec-position {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 1.5rem;
    color: #d4ba96;
}
.sec-position-icon {
    width: 1.2em;
    height: 1.2em;
    margin-left: -0.6em;
    margin-right: 0.5em;
}
.sec-position-city {
    margin-right: 0.5em;
}
/* 地点 end */

/* 英文 start */
.sec-t {
    margin: 2rem 4rem;
    height: 12rem;
    background-image: url('../images/t.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
/* 英文 end */

/* 邀请语 start */
.sec-words {
    text-align: center;
    font-size: 1.3rem;
    line-height: 3.5rem;
    margin-bottom: 5rem;
}
/* 邀请语 end */

/* 占位符 start */
.sec-blank {
    height: 8rem;
}
/* 占位符 end */

/* 动画 start */
.ani {
    opacity: 0;
    animation-fill-mode: forwards;
}
.ani-fly {
    animation-name: fly;
    animation-duration: 1500ms;
}
.ani-fade {
    animation-name: fade;
    animation-duration: 1500ms;
}

@keyframes fly {
    from {
        transform: translateY(1rem);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes spin {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}
/* 动画 end */
